  /**
   * Generate time : 2016-04-06 14:06:11
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGContactList 
 * table comment : 业务联系单记录 
 */
public class ZMCGContactList extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdType = "部门";		/* 类型*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdTitle = " ";		/* 通知标题*/
	private String fdSendDepartId = " ";		/* 发送单位ID*/
	private String fdSendPerson = " ";		/* 发送人*/
	private String fdSendPersonId = " ";		/* 发送人ID*/
	private String fdContent = " ";		/* 工程内容*/
	private String fdSendTime = " ";		/* 发送时间*/
	private String fdMiningId = " ";		/* 矿井id*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTitle");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("通知标题");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendDepartId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发送单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发送人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendPersonId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发送人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdContent");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("工程内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发送时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGContactList() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdType - 类型
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdTitle - 通知标题
	 * @return the fdTitle
	 */
	public String getFdTitle() {
		return this.fdTitle;
	}
	
	/**
	 * set the fdTitle - 通知标题
	 */
	public void setFdTitle(String fdTitle) {
		this.fdTitle = fdTitle;
	}
	/**
	 * get the fdSendDepartId - 发送单位ID
	 * @return the fdSendDepartId
	 */
	public String getFdSendDepartId() {
		return this.fdSendDepartId;
	}
	
	/**
	 * set the fdSendDepartId - 发送单位ID
	 */
	public void setFdSendDepartId(String fdSendDepartId) {
		this.fdSendDepartId = fdSendDepartId;
	}
	/**
	 * get the fdSendPerson - 发送人
	 * @return the fdSendPerson
	 */
	public String getFdSendPerson() {
		return this.fdSendPerson;
	}
	
	/**
	 * set the fdSendPerson - 发送人
	 */
	public void setFdSendPerson(String fdSendPerson) {
		this.fdSendPerson = fdSendPerson;
	}
	/**
	 * get the fdSendPersonId - 发送人ID
	 * @return the fdSendPersonId
	 */
	public String getFdSendPersonId() {
		return this.fdSendPersonId;
	}
	
	/**
	 * set the fdSendPersonId - 发送人ID
	 */
	public void setFdSendPersonId(String fdSendPersonId) {
		this.fdSendPersonId = fdSendPersonId;
	}
	/**
	 * get the fdContent - 工程内容
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}
	
	/**
	 * set the fdContent - 工程内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}
	/**
	 * get the fdSendTime - 发送时间
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}
	
	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTitle")), fdTitle));
		setFdSendDepartId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendDepartId")), fdSendDepartId));
		setFdSendPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPerson")), fdSendPerson));
		setFdSendPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPersonId")), fdSendPersonId));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdTitle",StringUtils.toString(fdTitle, eiMetadata.getMeta("fdTitle")));	
			map.put("fdSendDepartId",StringUtils.toString(fdSendDepartId, eiMetadata.getMeta("fdSendDepartId")));	
			map.put("fdSendPerson",StringUtils.toString(fdSendPerson, eiMetadata.getMeta("fdSendPerson")));	
			map.put("fdSendPersonId",StringUtils.toString(fdSendPersonId, eiMetadata.getMeta("fdSendPersonId")));	
			map.put("fdContent",StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));	
			map.put("fdSendTime",StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			
		return map;
	
	}
}